package com.ssrs.framework.web.swaggermodel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author ssrs
 */
@ApiModel("分页结果model")
public class DataGridModel<T> {
	@ApiModelProperty(value = "每页数量", example = "10")
	private long pageSize;
	@ApiModelProperty(value = "页码", example = "1")
	private long pageNo;
	@ApiModelProperty(value = "总数量", example = "132")
	private long totalCount;
	@ApiModelProperty(value = "业务数据", dataType = "List")
	private List<T> data;

	public long getPageSize() {
		return pageSize;
	}

	public void setPageSize(long pageSize) {
		this.pageSize = pageSize;
	}

	public long getPageNo() {
		return pageNo;
	}

	public void setPageNo(long pageNo) {
		this.pageNo = pageNo;
	}

	public long getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(long totalCount) {
		this.totalCount = totalCount;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}
}
